//
//  PurchaseBottomView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/3.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PurchaseBottomView.h"

@implementation PurchaseBottomView

-(id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        self.backgroundColor = [UIColor whiteColor];
        GLGWView * topLineView = [[GLGWView alloc] initWithInSuperView:self];
        topLineView.backgroundColor = [UIColor colorWithHexString:@"#EAEAEA"];
        [topLineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.equalTo(self).offset(0);
            make.height.equalTo(@0.8);
        }];
        for (int i=0; i<3; i++) {
            GLGWButton * but = [[GLGWButton alloc] initWithTitle:@"刷新求购单" titleLableFont:SYSTEMFONT(12) titleLableColor:kColor_Rule_Yellow theCornerRadius:kHeightProportion_In_iPhoneTriploid(15) theBorderWidth:1 theBorderColor:kColor_Rule_Yellow backgroundColr:[UIColor whiteColor] inSuperView:self];
            [but mas_makeConstraints:^(MASConstraintMaker *make) {
                make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15)-kWidthProportion_In_iPhoneTriploid(90)*i);
                make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(15));
                make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(80)));
                make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(30)));
            }];
        }
    }
    return self;
}

@end
